package myutils
{
	import flash.display.SimpleButton;
	/**按钮要可设置文本*/
	public class MyButton extends SimpleButton
	{
		/**默认格式，可设置文本、背景色按钮,默认字体大小适应高度限制*/	
		public function MyButton(width:int,height:int,text:String,textcolor:Number = 0x000000,down:Number=0x202020,up:Number=0x686868,pro:Number=0.8)
		{
			this.downState = new MyButtonSprite(down,width,height,text,pro,textcolor);
			this.upState = new MyButtonSprite(up,width,height,text,pro,textcolor);
			this.overState = this.upState;
			this.hitTestState = this.upState;
		}
		
		
	}
}